package cn.lwj;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


//开启spring的缓存 使得可以通过简单的注解就可以实现缓存功能
@EnableCaching
//servlet组件扫描 添加此注解才可以使得过滤器生效
@ServletComponentScan
//lombok提供 可以用来打印日志
@Slf4j
@SpringBootApplication
@EnableTransactionManagement // 开启事务管理
public class WeggieApplication {
       
    public static void main(String[] args) {
        SpringApplication.run(WeggieApplication.class, args);
        log.info("项目成功启动.......");
    }

}
